Skip to content

[libc][dlfcn] Remove unused errno dep #152222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged

Conversation

Caslyn
Copy link
Contributor

@Caslyn Caslyn commented Aug 5, 2025

This removes the errno dep for the stub libdl functions, since there is no need for it.

This removes the errno dep for the stub libdl functions, since there is
no need for it.
@Caslyn Caslyn marked this pull request as ready for review August 6, 2025 20:58
@Caslyn Caslyn self-assigned this Aug 6, 2025
@Caslyn Caslyn added the libc label Aug 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 6, 2025

@llvm/pr-subscribers-libc

Author: Caslyn Tonelli (Caslyn)

Changes

This removes the errno dep for the stub libdl functions, since there is no need for it.


Full diff: https://github.com/llvm/llvm-project/pull/152222.diff

1 Files Affected:

  • (modified) libc/src/dlfcn/CMakeLists.txt (-5)
diff --git a/libc/src/dlfcn/CMakeLists.txt b/libc/src/dlfcn/CMakeLists.txt
index 8ef0540c01a2e..2ee3ac074267f 100644
--- a/libc/src/dlfcn/CMakeLists.txt
+++ b/libc/src/dlfcn/CMakeLists.txt
@@ -14,7 +14,6 @@ add_entrypoint_object(
     dlerror.h
   DEPENDS
     libc.include.dlfcn
-    libc.src.errno.errno
 )
 
 add_entrypoint_object(
@@ -25,7 +24,6 @@ add_entrypoint_object(
     dlopen.h
   DEPENDS
     libc.include.dlfcn
-    libc.src.errno.errno
 )
 
 add_entrypoint_object(
@@ -36,7 +34,6 @@ add_entrypoint_object(
     dlsym.h
   DEPENDS
     libc.include.dlfcn
-    libc.src.errno.errno
 )
 
 add_entrypoint_object(
@@ -47,7 +44,6 @@ add_entrypoint_object(
     dlinfo.h
   DEPENDS
     libc.include.dlfcn
-    libc.src.errno.errno
 )
 
 add_entrypoint_object(
@@ -58,5 +54,4 @@ add_entrypoint_object(
     dladdr.h
   DEPENDS
     libc.include.dlfcn
-    libc.src.errno.errno
 )

@Caslyn Caslyn requested a review from frobtech August 6, 2025 21:00
Copy link
Contributor

@frobtech frobtech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Caslyn Caslyn merged commit e1171e6 into llvm:main Aug 7, 2025
23 checks passed
@Caslyn Caslyn deleted the remove-errno-dep branch August 7, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants